package com.mysoft.gfyx.marketdevelop.mip;

import com.mingyuanyun.sdk.mip.annotation.MipAuth;
import com.mingyuanyun.sdk.mip.client.IHttpApi;
import com.mingyuanyun.sdk.mip.enm.MipAuthType;
import com.mysoft.gfyx.marketdevelop.mip.dto.SupplierListRequestDto;
import com.mysoft.gfyx.marketdevelop.mip.dto.TjCustom.GetSupplierContactRequestDto;
import com.mysoft.gfyx.marketdevelop.mip.dto.TjCustom.GetSupplierDetailTableRequestDto;
import com.mysoft.gfyx.marketdevelop.mip.dto.TjCustom.GetSupplierProjectRequestDto;
import com.mysoft.gfyx.marketdevelop.mip.dto.TjCustom.SqlApiResponseDto;
import feign.Headers;
import feign.RequestLine;

@MipAuth(MipAuthType.OAUTH2)
public interface GetSupplierDataService extends IHttpApi {
    @RequestLine("POST /open-api/custom/supplier/list")
    @Headers("Content-Type: application/json")
    SqlApiResponseDto getSupplier(SupplierListRequestDto dto);

    @RequestLine("POST /open-api/custom/supplier/tag-list")
    @Headers("Content-Type: application/json")
    SqlApiResponseDto getSupplierTag(GetSupplierDetailTableRequestDto dto);

    @RequestLine("POST /open-api/custom/supplier/contact-list")
    @Headers("Content-Type: application/json")
    SqlApiResponseDto getSupplierContact(GetSupplierContactRequestDto dto);

    @RequestLine("POST /open-api/custom/supplier/project-list")
    @Headers("Content-Type: application/json")
    SqlApiResponseDto getSupplierProject(GetSupplierProjectRequestDto dto);
}